package com.nand.module.function.adapter;

import android.text.Html;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.nand.module.function.R;
import com.nand.module.function.bean.MMMBean;

/**
 * created by 86185
 * on 2020/1/16
 */
public class MMMAdapter extends BaseQuickAdapter<MMMBean, BaseViewHolder> {

    public MMMAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, MMMBean item) {
        //Html.fromHtml("工装名称:&#12288;<font color='#696969'>"+bean.getFixtureName()+"</font>")
        helper.setText(R.id.textview1, item.getCode());
        helper.setText(R.id.textview2, Html.fromHtml("工&#12288;&#12288;序：<font color='#696969'>"+item.getStation()+"</font>"));
        helper.setText(R.id.textview3, Html.fromHtml("看板类型：<font color='#696969'>"+item.getType()+"</font>"));//测  试
        helper.setText(R.id.textview4, Html.fromHtml("生成时间：<font color='#696969'>"+item.getCreatedTime()+"</font>"));
        helper.setText(R.id.textview5, item.getState());
    }


}